5bcd89920d9d852be5e4f4201d7fcb00d7c6ba2d,sonar-xml-plugin/src/test/java/org/sonar/plugins/xml/parsers/LineCountParserTest.java,LineCountParserTest,testSimpleLineCountParser,#,38
Before Change
@Test
public void testSimpleLineCountParser() throws IOException {
LineCountParser parser = new LineCountParser();
int numCommentLine = parser.countLinesOfComment(FileUtils.openInputStream(new File("src/test/resources/parsers/linecount/simple.xml")));
assertThat(numCommentLine).isEqualTo(1);
}
After Change
@Test
public void testSimpleLineCountParser() throws IOException {
LineCountParser parser = new LineCountParser(FileUtils.openInputStream(new File("src/test/resources/parsers/linecount/simple.xml")));
assertThat(parser.getEffectiveCommentLineNumber()).isEqualTo(1);
assertThat(parser.getCommentLineNumber()).isEqualTo(1);